<?php
class Q_Controller_Action extends Zend_Controller_Action
{
    /**
     * FlashMessenger
     *
     * @var Zend_Controller_Action_Helper_FlashMessenger
     */
    protected $_flashMessenger = null;
    /**
     * Application initialization - Zend_Controller_Action::__construct() calls this
     * method after its own initialization.
     *
     * @todo Find out why FlashMessanger isn't working as expected
     */
    public function init() {
    
        $front = Zend_Controller_Front::getInstance();
        
        $this->config = $front->getParam('config'); // order matters here, many things use config
        //$this->session = $front->getParam('session');
        
        $this->flash = $this->_helper->getHelper('FlashMessenger');
        
        // view initialization
        $this->view = $front->getParam('view');
        $this->view->flash = $this->flash;
    
    }

}